﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MalRec.Base.Inteface;
using MyAnimelistRecommender.wAnime.Model;

namespace MyAnimelistRecommender.wAnime.View
{
    /// <summary>
    /// Interaction logic for wAnimeModule.xaml
    /// </summary>
    public partial class wAnimeModuleView : UserControl, IModuleView
    {
        public wAnimeModuleView()
        {
            InitializeComponent();
        }

        #region IView Members

        /// <summary>
        /// Gets or sets the Presenter
        /// </summary>
        public object Presenter
        {
            get;
            set;
        }

        #endregion IView Members

        #region IBaseModuleView Members

        /// <summary>
        /// Gets the module title
        /// </summary>
        public string Title
        {
            get
            {
                return Properties.Resources.ModuleTitle;
            }
        }

        /// <summary>
        /// Gets the prefered height
        /// </summary>
        public int PreferedHeight
        {
            get
            {
                return 400;
            }
        }

        /// <summary>
        /// Gets the prefered width
        /// </summary>
        public int PreferedWidth
        {
            get
            {
                return 400;
            }
        }

        #endregion IBaseModuleView Members

        #region IModuleView Members

        /// <summary>
        /// Gets or sets the ModulePresentationModel
        /// </summary>
        public wAnimeModel Model
        {
            get { return DataContext as wAnimeModel; }
            private set { DataContext = value; }
        }

        #endregion IModuleView Members
    }
}